#ifndef __SIGEL_MATH_H__
#define __SIGEL_MATH_H__

float rnd(float b,float e);
float rnd(float e);
int rand(int a);
int rand(int b,int e);

float Dist2D(float x,float y);
float Dist2D(float x1,float y1,float x2,float y2);

unsigned int ToPow2(unsigned int val);
void SinCos(float Angle,float & SinValue,float & CosValue );

float InvSqrt (float x);


const float PI = 3.1415926535897932384626433832795f;
const float PI2 = 1.5707963267948966192313216916398f;

const float D2R = PI / 180.0f;
const float R2G = 180.0f / PI;


//const float PI = 3.1415f;
//const float PI2 = 1.5707f;

float AngleDist(float a1,float a2);

float AngleLerp(float a1,float a2,float scalar);

float AngleNormalize(float a);

int round(float a);
#endif